/*
 * @Author: gxs
 * @Date: 2024-09-12 11:27:52
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-09-19 16:20:39
 * @Description: 请填写简介
 */
#include <STC89C5xRC.H>
#include <stdio.h>
#include "string.h"
#include "Com_Util.h"
#include "Int_Oled.h"
#include "App_Run.h"
#include "Int_MatrixKey.h"

extern unsigned char writeData[10];
void main() 
{
    unsigned char keyNum;
    unsigned char num = 0;
    App_Run_Init();
    while (1)
    {
        keyNum = Int_MatrixKey_CheckKey();
        //  writeData[num] = keyNum + '0';
        // num ++;
        // Dri_Uart_WriteString(writeData);
        switch (keyNum)
        {
        case 0:
        case 1:
        case 2:
        case 3:
        case 4:
        case 5:
        case 6:
        case 7:
        case 8:
            writeData[num] = keyNum + '0';
            num ++;
            Dri_Uart_WriteString(writeData);
            break;
        case 11:
            writeData[num] = '\0';
            num --;
            break;
        case 12:
        
            break;
        case 13:
        
            break;
        case 21:

            break;
        case 22:
        
            break;
        case 9:
            while (cardOperation());
            memset(writeData, '\0', sizeof(writeData));
            num = 0;
            break;
        default:
            break;
        }
        Int_Oled_ShowStr(1,0,writeData);
    }
}



